package guowenlong.golf.ui.login;


import guowenlong.golf.entity.LoginEntity;
import me.wenlong.mixutils.mvp.BaseModel;
import me.wenlong.mixutils.mvp.BasePresenter;
import me.wenlong.mixutils.mvp.BaseView;
import rx.Observable;

/**
 * des   : 描述 author: Gavin email : guowenlong20000@gmail.com time  : 2016年08月30日 下午 5:19.
 */
public interface LoginContract {

  interface Model extends BaseModel {

    Observable<LoginEntity> login(String phone, String password);
  }

  interface View extends BaseView {

    void loginSuccess(LoginEntity loginEntity);

    void loginError(LoginEntity loginEntity);
  }

  abstract class Presenter extends BasePresenter<Model, View> {

    public abstract void login(String phone, String password);
  }
}